package com.surprise.webcommon.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * CommonResponse.java
 * @author nick
 * 2015年2月10日
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class CommonResponse {
    protected int status = 0;
    protected String msg = "";
    
    public static CommonResponse SUCCESS = new CommonResponse();
    
    /**
     * 获取日志记录单元
     * 重载实现日志版response(e.g. detail接口只需要记录response的idlist)
     * 默认this
     * @return
     */
    public Object logItem() {
        return this;
    }
}
